package cn.edu.zust.se.springmvctest.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 
 * @author czg
 * @since 2022/11/23 16:04
 */
@Controller
@RequestMapping("/owner/{ownerId}")
public class PetController {
    @RequestMapping("/pets/{petId}")
    public String getPet(@PathVariable  String ownerId,
                         @PathVariable  String petId, String name){
        System.out.println("PET: ownerID="+ownerId+",petId="+petId
        +",name="+name);
        return "hello";
    }
}
